package com.cgs.springboottes2secrity.sec;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author cgs
 * @version woNiu 98
 * @date 2023/5/10 17:38
 */
@Getter
@Setter
public class SecAdmin extends User {
    private Integer id;

    public SecAdmin(Integer id, String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id = id;
    }
}
